package com.hsgene.order.persistence;

import com.hsgene.order.domain.v1.GeneticTestingOrderRequisition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单申请单Repository
 *
 * @author wangbing
 * @version 1.0, 2018/9/29
 */
@Repository
public interface OrderRequisitionRepository {

    /**
     * 查询订单关联检测单
     *
     * @param orderId 订单id
     * @param orgIds  检测机构ids(逗号分隔)
     * @return 关联检测单列表
     */
    List<GeneticTestingOrderRequisition> queryByOrderIdAndOrgId(
            @Param("orderId") String orderId, @Param("orgIds") String orgIds);
}
